package com.oig.sys.msg.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.Date;

@Schema
@Data
public class UserMsgVo {

    @Schema(description = "消息内容id")
    private Integer id;

    @Schema(description = "消息公告标题")
    private String title;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "消息源 01-系统消息  02-人工通知")
    private String msgSource;

//    @Schema(description = "消息类型 01-定向消息 02-群消息")
//    private String msgType;

    @Schema(description = "关联任务id")
    private String bizId;

    @Schema(description = "发布人")
    private String publisherName;
    @Schema(description = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publisherTime;

    @Schema(description = "消息发布人")
    private String createUserName;
    @Schema(description = "消息发布人时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "消息修改人")
    private String lastUpdateName;
    @Schema(description = "消息修改人时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    @Schema(description = "复核人")
    private String checkName;
    @Schema(description = "复核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkTime;

    @Schema(description = "阅读状态 01-未读 02-已读")
    private String msgStatus;

    @Schema(description = "阅读时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date readTime;
}
